<?php

namespace App\Kuafu\Banner\Enum;

use App\Kuafu\Base\Enum\BaseCodeEnum;

class BannerCodeEnum extends BaseCodeEnum
{

    const ERR_BANNER_PARAM_VALID             = 413001;
    const ERR_BANNER_DB_ADD                  = 413002;
    const ERR_BANNER_DB_SET                  = 413003;
    const ERR_BANNER_DB_DEL                  = 413004;
    const ERR_BANNER_DB_PATCH                = 413005;
    const ERR_BANNER_ID_NOT_EXIST            = 413006;
    const ERR_BANNER_TITLE                   = 413007;
    const ERR_BANNER_TITLE_TO_LONG           = 413008;
    const ERR_BANNER_DESC                    = 413009;
    const ERR_BANNER_NOT_INPUT               = 413010;
    const ERR_BANNER_CONFIG_HAVE_DATA        = 413011;
    const ERR_BANNER_NAME_EXIST              = 413012;
    const ERR_AD_LIST_CONFIG_ID_NOT_NULL     = 413020;
    const ERR_AD_LIST_IMAGE_NOT_NULL         = 413021;
    const ERR_AD_LIST_NAME_NOT_NULL          = 413022;
    const ERR_AD_LIST_URL_NOT_NULL           = 413023;
    const ERR_AD_LIST_START_TIME_NOT_NULL    = 413024;
    const ERR_AD_LIST_END_TIME_NOT_NULL      = 413025;
    const ERR_AD_LIST_START_TIME_LT_END_TIME = 413026;
    const ERR_AD_LIST_STATUS_NOT_NULL        = 413027;
    const ERR_AD_LIST_NAME_TO_LONG           = 413028;

    const CODE_TEXT = [
        self::ERR_BANNER_PARAM_VALID             => "参数校验错误",
        self::ERR_BANNER_DB_ADD                  => "新增失败",
        self::ERR_BANNER_DB_SET                  => "编辑失败",
        self::ERR_BANNER_DB_DEL                  => "删除失败",
        self::ERR_BANNER_DB_PATCH                => "上下架失败",
        self::ERR_BANNER_ID_NOT_EXIST            => "ID记录不存在",
        self::ERR_AD_LIST_CONFIG_ID_NOT_NULL     => "广告横幅id必填",
        self::ERR_AD_LIST_IMAGE_NOT_NULL         => "广告列表图片必填",
        self::ERR_AD_LIST_NAME_NOT_NULL          => "广告列表名称必填",
        self::ERR_AD_LIST_URL_NOT_NULL           => "跳转地址必填",
        self::ERR_AD_LIST_START_TIME_NOT_NULL    => "开始时间必填",
        self::ERR_AD_LIST_END_TIME_NOT_NULL      => "结束时间必填",
        self::ERR_AD_LIST_START_TIME_LT_END_TIME => "开始时间不能大于结束时间",
        self::ERR_AD_LIST_STATUS_NOT_NULL        => "图片状态必填",
        self::ERR_AD_LIST_NAME_TO_LONG           => "广告列表名称过长",
        self::ERR_BANNER_TITLE                   => "请输入广告标题",
        self::ERR_BANNER_TITLE_TO_LONG           => "广告标题过长",
        self::ERR_BANNER_DESC                    => "请输入广告位置描述",
        self::ERR_BANNER_NOT_INPUT               => "非法数据，参数校验失败",
        self::ERR_BANNER_CONFIG_HAVE_DATA        => "该 Banner 位置存在数据",
        self::ERR_BANNER_NAME_EXIST              => "广告标题不能重复",
    ];

}
